package com.ruoyi.check.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.check.mapper.SysEquipmentMapper;
import com.ruoyi.check.domain.SysEquipment;
import com.ruoyi.check.service.ISysEquipmentService;

/**
 * 设备信息Service业务层处理
 * 
 * @author hugh.sun
 * @date 2023-02-22
 */
@Service
public class SysEquipmentServiceImpl implements ISysEquipmentService 
{
    @Autowired
    private SysEquipmentMapper sysEquipmentMapper;

    /**
     * 查询设备信息
     * 
     * @param id 设备信息主键
     * @return 设备信息
     */
    @Override
    public SysEquipment selectSysEquipmentById(Long id)
    {
        return sysEquipmentMapper.selectSysEquipmentById(id);
    }

    /**
     * 查询设备信息列表
     * 
     * @param sysEquipment 设备信息
     * @return 设备信息
     */
    @Override
    public List<SysEquipment> selectSysEquipmentList(SysEquipment sysEquipment)
    {
        return sysEquipmentMapper.selectSysEquipmentList(sysEquipment);
    }

    /**
     * 新增设备信息
     * 
     * @param sysEquipment 设备信息
     * @return 结果
     */
    @Override
    public int insertSysEquipment(SysEquipment sysEquipment)
    {
        return sysEquipmentMapper.insertSysEquipment(sysEquipment);
    }

    /**
     * 修改设备信息
     * 
     * @param sysEquipment 设备信息
     * @return 结果
     */
    @Override
    public int updateSysEquipment(SysEquipment sysEquipment)
    {
        return sysEquipmentMapper.updateSysEquipment(sysEquipment);
    }

    /**
     * 批量删除设备信息
     * 
     * @param ids 需要删除的设备信息主键
     * @return 结果
     */
    @Override
    public int deleteSysEquipmentByIds(Long[] ids)
    {
        return sysEquipmentMapper.deleteSysEquipmentByIds(ids);
    }

    /**
     * 删除设备信息信息
     * 
     * @param id 设备信息主键
     * @return 结果
     */
    @Override
    public int deleteSysEquipmentById(Long id)
    {
        return sysEquipmentMapper.deleteSysEquipmentById(id);
    }
}
